package com.youlu.campus.entity.domain;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 微信小程序解密用户数据
 */
@Getter
@Setter
public class WechatMiniDecryptRequest {
    @NotNull(message = "openId不能为空")
    private String openId;

    @NotNull(message = "encryptedData不能为空")
    private String encryptedData;

    @NotNull(message = "iv不能为空")
    private String iv;

    private String appId;
    /**
     * 1:用户信息,2:手机号
     */
    private String type;
}
